package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.AppCourseConsume;
import com.ruoyi.common.core.domain.vo.AppCourseConsumeVo;
import com.ruoyi.system.mapper.AppCourseConsumeMapper;
import com.ruoyi.system.service.IAppCourseConsumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppCourseConsumeServiceImpl implements IAppCourseConsumeService {

    @Autowired
    private AppCourseConsumeMapper appCourseConsumeMapper;

    @Override
    public List<AppCourseConsumeVo> selectCurseConsumeList(AppCourseConsume appCourseConsume) {
        return appCourseConsumeMapper.selectAppCourseConsumeList(appCourseConsume);
    }

    @Override
    public int changeStatus(AppCourseConsume appCourseConsume) {
        return appCourseConsumeMapper.updateAppCourseConsume(appCourseConsume);
    }
}
